package com.yang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class Encoding {
    @PostMapping("/e")
    public String test1(ModelMap model, String name){
        model.addAttribute("msg",name);
        System.out.println(name);
        return "test";

    }

}

